/*
 * XML Type:  LocalTaxWithheldAggregate
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.LocalTaxWithheldAggregate
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML LocalTaxWithheldAggregate(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class LocalTaxWithheldAggregateImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.LocalTaxWithheldAggregate
{
    
    public LocalTaxWithheldAggregateImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName AMOUNT$0 = 
        new javax.xml.namespace.QName("", "AMOUNT");
    private static final javax.xml.namespace.QName NAMELCL$2 = 
        new javax.xml.namespace.QName("", "NAMELCL");
    private static final javax.xml.namespace.QName LCLDIST$4 = 
        new javax.xml.namespace.QName("", "LCLDIST");
    
    
    /**
     * Gets the "AMOUNT" element
     */
    public java.lang.String getAMOUNT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AMOUNT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "AMOUNT" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetAMOUNT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(AMOUNT$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "AMOUNT" element
     */
    public void setAMOUNT(java.lang.String amount)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AMOUNT$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(AMOUNT$0);
            }
            target.setStringValue(amount);
        }
    }
    
    /**
     * Sets (as xml) the "AMOUNT" element
     */
    public void xsetAMOUNT(net.ofx.types.x2003.x04.AmountType amount)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(AMOUNT$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(AMOUNT$0);
            }
            target.set(amount);
        }
    }
    
    /**
     * Gets the "NAMELCL" element
     */
    public java.lang.String getNAMELCL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAMELCL$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "NAMELCL" element
     */
    public net.ofx.types.x2003.x04.GenericNameType xgetNAMELCL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(NAMELCL$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "NAMELCL" element
     */
    public void setNAMELCL(java.lang.String namelcl)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAMELCL$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAMELCL$2);
            }
            target.setStringValue(namelcl);
        }
    }
    
    /**
     * Sets (as xml) the "NAMELCL" element
     */
    public void xsetNAMELCL(net.ofx.types.x2003.x04.GenericNameType namelcl)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(NAMELCL$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.GenericNameType)get_store().add_element_user(NAMELCL$2);
            }
            target.set(namelcl);
        }
    }
    
    /**
     * Gets the "LCLDIST" element
     */
    public java.lang.String getLCLDIST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LCLDIST$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "LCLDIST" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetLCLDIST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(LCLDIST$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "LCLDIST" element
     */
    public boolean isSetLCLDIST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LCLDIST$4) != 0;
        }
    }
    
    /**
     * Sets the "LCLDIST" element
     */
    public void setLCLDIST(java.lang.String lcldist)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LCLDIST$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LCLDIST$4);
            }
            target.setStringValue(lcldist);
        }
    }
    
    /**
     * Sets (as xml) the "LCLDIST" element
     */
    public void xsetLCLDIST(net.ofx.types.x2003.x04.AmountType lcldist)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(LCLDIST$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(LCLDIST$4);
            }
            target.set(lcldist);
        }
    }
    
    /**
     * Unsets the "LCLDIST" element
     */
    public void unsetLCLDIST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LCLDIST$4, 0);
        }
    }
}
